package com.test.controller;

/**
 * HelloController
 *
 * @author HY
 * 2021/04/29 17:25
 **/
import com.test.Aspect.BusinessException;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/hello")
public class HelloController {

    @GetMapping("/say")
    public String sayHello(){
//        throw new BusinessException(1,"出错了");
        return "Hello SpringBoot";
    }
}
